package com.situ.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 订单项模型
 */

@Getter
@Setter
@TableName("order_item")
public class OrderItem {
    @TableId(type = IdType.AUTO)
    private Integer id; //订单项ID

    private Integer orderId;//订单ID

    private Integer userId;

    private Integer productId; //商品ID

    private String productName; //商品名称

    private BigDecimal productPrice; //商品单价

    private Integer quantity; //商品数量

    private BigDecimal totalPrice; //商品总价 (小计)

    private Integer orderType;

    private String avatar;//商品图片
}
